<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: WWDG</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">模块</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">WWDG<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>WWDG driver modules  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
模块</h2></td></tr>
<tr class="memitem:group___w_w_d_g___exported___constants"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___exported___constants.html">WWDG_Exported_Constants</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___w_w_d_g___private___functions"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___private___functions.html">WWDG_Private_Functions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ga21acbfaa230f318a163ae8a42e7ef8db"><td class="memItemLeft" align="right" valign="top"><a id="ga21acbfaa230f318a163ae8a42e7ef8db"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_WWDG_PRESCALER_VALUE</b>(VALUE)&#160;&#160;&#160;((VALUE) &lt;= <a class="el" href="group___w_w_d_g___prescaler.html#ga019ffdbf52e80813b5a7719ecf2395da">WWDG_PRESCALER_MAX</a>)</td></tr>
<tr class="separator:ga21acbfaa230f318a163ae8a42e7ef8db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab6ea714a2380b7d6547ba97363887868"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_WWDG_WINDOW_VALUE</b>(VALUE)</td></tr>
<tr class="separator:gab6ea714a2380b7d6547ba97363887868"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga231a602a09ecf6562cbad957b03a09b7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_WWDG_RELOAD_VALUE</b>(VALUE)</td></tr>
<tr class="separator:ga231a602a09ecf6562cbad957b03a09b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga7130f4dc861b9234b62e73f9f57f89a1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g.html#ga7130f4dc861b9234b62e73f9f57f89a1">WWDG_DeInit</a> (void)</td></tr>
<tr class="memdesc:ga7130f4dc861b9234b62e73f9f57f89a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the WWDG peripheral registers to their default reset values.  <a href="#ga7130f4dc861b9234b62e73f9f57f89a1">更多...</a><br /></td></tr>
<tr class="separator:ga7130f4dc861b9234b62e73f9f57f89a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafeaa2b52c31ba7baca7eb61d2d42e07b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g.html#gafeaa2b52c31ba7baca7eb61d2d42e07b">WWDG_SetPrescaler</a> (uint32_t WWDG_Prescaler)</td></tr>
<tr class="memdesc:gafeaa2b52c31ba7baca7eb61d2d42e07b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the WWDG Prescaler.  <a href="#gafeaa2b52c31ba7baca7eb61d2d42e07b">更多...</a><br /></td></tr>
<tr class="separator:gafeaa2b52c31ba7baca7eb61d2d42e07b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf44a7bf8bf6b11b41cd89ff521fdd5a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g.html#gaf44a7bf8bf6b11b41cd89ff521fdd5a5">WWDG_SetWindowValue</a> (uint8_t WindowValue)</td></tr>
<tr class="memdesc:gaf44a7bf8bf6b11b41cd89ff521fdd5a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the WWDG window value.  <a href="#gaf44a7bf8bf6b11b41cd89ff521fdd5a5">更多...</a><br /></td></tr>
<tr class="separator:gaf44a7bf8bf6b11b41cd89ff521fdd5a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac6a088fd6762cf674edb30d9496647f7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g.html#gac6a088fd6762cf674edb30d9496647f7">WWDG_IT_Cmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:gac6a088fd6762cf674edb30d9496647f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disable the WWDG's interrupt.  <a href="#gac6a088fd6762cf674edb30d9496647f7">更多...</a><br /></td></tr>
<tr class="separator:gac6a088fd6762cf674edb30d9496647f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e44cc35f133b28b9ad861f459bf8d76"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g.html#ga6e44cc35f133b28b9ad861f459bf8d76">WWDG_SetCounter</a> (uint8_t Counter)</td></tr>
<tr class="memdesc:ga6e44cc35f133b28b9ad861f459bf8d76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the WWDG counter value.  <a href="#ga6e44cc35f133b28b9ad861f459bf8d76">更多...</a><br /></td></tr>
<tr class="separator:ga6e44cc35f133b28b9ad861f459bf8d76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga11db23ae498e3905f3640b77e19c176e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g.html#ga11db23ae498e3905f3640b77e19c176e">WWDG_Cmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga11db23ae498e3905f3640b77e19c176e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the WWDG peripheral.  <a href="#ga11db23ae498e3905f3640b77e19c176e">更多...</a><br /></td></tr>
<tr class="separator:ga11db23ae498e3905f3640b77e19c176e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7df4882d45918b9b8249dfca1e44fabc"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g.html#ga7df4882d45918b9b8249dfca1e44fabc">WWDG_GetFlagStatus</a> (void)</td></tr>
<tr class="memdesc:ga7df4882d45918b9b8249dfca1e44fabc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the Early Wakeup interrupt flag is set or not.  <a href="#ga7df4882d45918b9b8249dfca1e44fabc">更多...</a><br /></td></tr>
<tr class="separator:ga7df4882d45918b9b8249dfca1e44fabc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabd2b5a6317c2e1a3ab0795838ce59dd2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g.html#gabd2b5a6317c2e1a3ab0795838ce59dd2">WWDG_ClearFlag</a> (void)</td></tr>
<tr class="memdesc:gabd2b5a6317c2e1a3ab0795838ce59dd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears Early Wakeup interrupt flag.  <a href="#gabd2b5a6317c2e1a3ab0795838ce59dd2">更多...</a><br /></td></tr>
<tr class="separator:gabd2b5a6317c2e1a3ab0795838ce59dd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>WWDG driver modules </p>
<h2 class="groupheader">宏定义说明</h2>
<a id="ga231a602a09ecf6562cbad957b03a09b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga231a602a09ecf6562cbad957b03a09b7">&#9670;&nbsp;</a></span>IS_WWDG_RELOAD_VALUE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_WWDG_RELOAD_VALUE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">VALUE</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">(((VALUE) &gt;= WWDG_RELOAD_MIN) &amp;&amp; \</div><div class="line">                                     ((VALUE) &lt;= WWDG_RELOAD_MAX))</div></div><!-- fragment -->
</div>
</div>
<a id="gab6ea714a2380b7d6547ba97363887868"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab6ea714a2380b7d6547ba97363887868">&#9670;&nbsp;</a></span>IS_WWDG_WINDOW_VALUE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_WWDG_WINDOW_VALUE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">VALUE</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">(((VALUE) &gt;= WWDG_WINDOW_MIN) &amp;&amp; \</div><div class="line">                                     ((VALUE) &lt;= WWDG_WINDOW_MAX))</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="gabd2b5a6317c2e1a3ab0795838ce59dd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabd2b5a6317c2e1a3ab0795838ce59dd2">&#9670;&nbsp;</a></span>WWDG_ClearFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WWDG_ClearFlag </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears Early Wakeup interrupt flag. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga11db23ae498e3905f3640b77e19c176e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga11db23ae498e3905f3640b77e19c176e">&#9670;&nbsp;</a></span>WWDG_Cmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WWDG_Cmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the WWDG peripheral. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the WWDG peripheral. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga7130f4dc861b9234b62e73f9f57f89a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7130f4dc861b9234b62e73f9f57f89a1">&#9670;&nbsp;</a></span>WWDG_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WWDG_DeInit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deinitializes the WWDG peripheral registers to their default reset values. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga7df4882d45918b9b8249dfca1e44fabc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7df4882d45918b9b8249dfca1e44fabc">&#9670;&nbsp;</a></span>WWDG_GetFlagStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FlagStatus WWDG_GetFlagStatus </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the Early Wakeup interrupt flag is set or not. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of the Early Wakeup interrupt flag (SET or RESET) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gac6a088fd6762cf674edb30d9496647f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac6a088fd6762cf674edb30d9496647f7">&#9670;&nbsp;</a></span>WWDG_IT_Cmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WWDG_IT_Cmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disable the WWDG's interrupt. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the WWDG's interrupt. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga6e44cc35f133b28b9ad861f459bf8d76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6e44cc35f133b28b9ad861f459bf8d76">&#9670;&nbsp;</a></span>WWDG_SetCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WWDG_SetCounter </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>Counter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the WWDG counter value. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Counter</td><td>specifies the watchdog counter value. This parameter must be a number between 0x40 and 0x7F. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gafeaa2b52c31ba7baca7eb61d2d42e07b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafeaa2b52c31ba7baca7eb61d2d42e07b">&#9670;&nbsp;</a></span>WWDG_SetPrescaler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WWDG_SetPrescaler </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>WWDG_Prescaler</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the WWDG Prescaler. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">WWDG_Prescaler</td><td>specifies the WWDG Prescaler. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaf44a7bf8bf6b11b41cd89ff521fdd5a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf44a7bf8bf6b11b41cd89ff521fdd5a5">&#9670;&nbsp;</a></span>WWDG_SetWindowValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WWDG_SetWindowValue </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>WindowValue</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the WWDG window value. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">WindowValue</td><td>specifies the window value to be compared to the downcounter. This parameter value must be lower than 0x80. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
